const db = require('../db');
const Photo = require('./Photo');
const User = require('./User');

let Comment = db.defineModel('comments', {
    text: db.TEXT,
    like: db.BIGINT
});
Comment.belongsTo(Photo, {foreignKey: 'photoId'});
Comment.belongsTo(User, {foreignKey: 'userId'});

module.exports = Comment;